package com.gls.api.service.demo.client;

import com.gls.api.service.demo.dto.User;
import org.springframework.web.bind.annotation.*;

/**
 * @author lizhiyong
 */
@RequestMapping("/refactor")
public interface HelloClient {

    /**
     * demo示例
     *
     * @param name
     * @return
     */
    @RequestMapping(value = "/hello4", method = RequestMethod.GET)
    String hello(@RequestParam("name") String name);

    /**
     * demo示例
     *
     * @param name
     * @param age
     * @return
     */
    @RequestMapping(value = "/hello5", method = RequestMethod.GET)
    User hello(@RequestHeader("name") String name, @RequestHeader("age") Integer age);

    /**
     * demo示例
     *
     * @param user
     * @return
     */
    @RequestMapping(value = "/hello6", method = RequestMethod.POST)
    String hello(@RequestBody User user);

}